<?php
session_start();
include('inc/config.php');
?>
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <meta name="Hasan" content="EC" />
        <!--  CSS   -->
        <link href="css/en/mycss.css" rel="Stylesheet" type="text/css" />
        <link href="css/en/header.css" rel="Stylesheet" type="text/css" />
        <link href="css/en/newsPage.css" rel="Stylesheet" type="text/css" />
        <link href="css/en/footer.css" rel="Stylesheet" type="text/css" />

        <link rel="shortcut icon" href="favicon.ico" />
        <!--  JS   -->
        <script src="js/jquery-1.4.2.min.js" type="text/javascript"></script>
        <!--        <li class="circle" class="cicles" content="0"></li>-->
        <script src="js/index.js"></script>
        <script src="js/header.js"></script>
        <script src="js/ajax.js"></script>

        <title>Mobizoo Mobiles - News Page</title>
    </head>

    <!-- BODY -->
    <body>

        <div id="allContent">

            <?php
            include('inc/header.php');
            ?>


            <!-- ********************************* -->
            <!-- News -->
            <?php
            $id = $_GET['id'];
            $sql = "Select * from news where id=$id";
            $result = mysql_query($sql);
            $row = mysql_fetch_array($result);
            ?>
            <div id="newsArea">
                <div id="newsAreaImage">
                    <?= '<img src="images/News/'.$row['picture'].'" height="250px"/>' ?>
                </div>
                <div id="newsAreaText">
                    <div id="newsAreaTextTitle">
                        <h1><a href="news.php">News</a></h1><h2>
                            <?php
                            if ($language == 'ar') {
                                echo $row['title_ar'];
                            } else {
                                echo $row['title_en'];
                            }
                            ?>
                        </h2>
                    </div>
                    <div id="newsAreaTextDesc">
                        <p>
                            <?php
                            if ($language == 'ar') {
                                echo $row['description_ar'];
                            } else {
                                echo $row['description_en'];
                            }
                            ?>
                        </p>
                    </div>
                </div>
            </div>

            <!-- ********************************* -->
            <!-- footer -->
            <!-- ********************************* -->
            <?php
            include('inc/footer.php');
            ?>
        </div>
    </body>
</html>